global amrack; global amscan; global amaux;
amscan=amcscan;
amrack=amcrack;
amrack.insts=amidummy(0,'dummy');
amrack.insts(2)=amitimer(0,'clockkkk');
amrack.rackchans=amcrackchan('dummy1',amrack.insts(1).channels(1));
amrack.rackchans(2)=amcrackchan('time',amrack.insts(2).channels(1));
amrack.rackchans(3)=amcrackchan('slowdumb',amrack.insts(1).channels(2));
amrack.rackchans(3).maxrate=1;
amscan.loops=amcloop;
amscan.loops.setchans=amrack.rackchans(3);
amscan.loops.getchans=amrack.rackchans(2);
amscan.loops.npoints=100;
amscan.loops.startpts=0;
amscan.loops.endpts=1;
amscan.loops.pointrate=Inf;
amscan.loops.plots=amcplot;
amscan.loops.plots.xchan=amrack.rackchans(3);
amscan.loops.plots.ychan=amrack.rackchans(2);
amscan.loops.plots.plottype='XY';